package com.example.petshopping.model;

import com.google.gson.annotations.SerializedName;

/**
 * 获取短信验证码请求
 */
public class SmsCodeRequest {
    
    @SerializedName("mobile")
    private String mobile;
    
    @SerializedName("scene")
    private Integer scene; // 场景，对应 SmsSceneEnum 枚举值

    public SmsCodeRequest(String mobile) {
        this.mobile = mobile;
        this.scene = SmsSceneEnum.MEMBER_LOGIN.getScene(); // 默认为会员登录场景
    }

    public SmsCodeRequest(String mobile, SmsSceneEnum sceneEnum) {
        this.mobile = mobile;
        this.scene = sceneEnum.getScene();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getScene() {
        return scene;
    }

    public void setScene(Integer scene) {
        this.scene = scene;
    }

    public void setScene(SmsSceneEnum sceneEnum) {
        this.scene = sceneEnum.getScene();
    }
} 